header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
AboveTopSecret.com Podcast List
require_once "/home/abovetopsecret/aboveboard/config.php";
mysql_pconnect($dbhost, $dbuser, $dbpw);
mysql_select_db($dbname);
$feedquery = "";
$file = $_GET['file'];
// echo $file;
if($_GET['feed']){
$podchannel = $_GET['feed'];
$feedquery = "and podchannel = '$podchannel'";
// $query = mysql_query("select * from podcast where status = 'live' $feedquery order by dateline DESC limit 0,1");
// $thefile = mysql_fetch_array($query);
// $file = $thefile['filename'];
// $min = $thefile['min'];
// $sec = $thefile['sec'];
// $title = $thefile['title'];
// $description = $thefile['description'];
// $thread = $thefile['tid'];
// $podchannel = $thefile['podchannel'];
// $member = $thefile['member'];
// $feedtitle = "All Feeds";
}
if($podchannel == "music"){ $feedtitle = "Member Music Feed"; }
if($podchannel == "atsx"){ $feedtitle = "Extraterrestrials & Science Feed"; }
if($podchannel == "atss"){ $feedtitle = "Staff Podcast Feed"; }
if($podchannel == "atsc"){ $feedtitle = "Conspiracy Theory Feed"; }
if($podchannel == "atsf"){ $feedtitle = "Fragile Earth & Health Feed"; }
if($podchannel == "atsg"){ $feedtitle = "Government & Military Feed"; }
if($podchannel == "talk"){ $feedtitle = "General Talk Feed"; }
if($podchannel == "humor"){ $feedtitle = "Humor Feed"; }
if($podchannel == "atsp"){ $feedtitle = "Paranormal Feed"; }
$filelist = "";
$query = mysql_query("select * from podcast where filename <> '$file' $feedquery AND status = 'live' order by dateline DESC limit 0,40");
while($play = mysql_fetch_array($query)){
$thetime = date("F j, Y",$play['dateline']);
$min = $play['min'];
$sec = $play['sec'];
$filelist = $filelist."
|
".$play['title'].": ".$play['member']."
Podcast uploaded on $thetime and is $min:$sec in length. |
";
}
$filelist = $filelist."
";
echo $filelist;
?>